package 代理模式.静态代理;

public class PlayerPeroxy implements Player{

    private Player  player = null;

    public void setPlayer(Player player) {
        this.player = player;
    }

    public PlayerPeroxy(Player player) {
        this.player = player;
    }

    @Override
    public void play() {
        System.out.println("下面过程是代理别人账号打游戏：");
        player.play();
        System.out.println("这里代理结束了");
    }
}
